package com.iseastar.guojiang.order;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.iseastar.guojiang.BaseActivity;
import com.shouhuobao.station.R;
import com.iseastar.guojiang.logic.AppHttp;

import droid.frame.view.ScaledImageView;

/**
 * 图片查看，传一个图片url过来
 * 
 * @author kaka
 * 
 */
public class OrderPictureCheckActivity extends BaseActivity {
	/**
	 * 方形ImageView
	 */
	private ScaledImageView mPicView;
	/**
	 * pic url
	 */
	private String mPicUrl;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.order_picture_check);
		mPicUrl = getIntent().getStringExtra("picUrl");
		findView();
	}

	private void findView() {
		mPicView = (ScaledImageView) findViewById(R.id.order_iamge);
		findViewById(R.id.full_view).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		//
		AppHttp.getInstance().loadImage(mPicUrl, mPicView);
	}

}
